package com.pianzhu.blockchainemr.utils;

public class CurrentHolder {
    private static final ThreadLocal<String> CURRENT_LOCAL = new ThreadLocal<>();
    public static void  setCurrentLocal(String username) {
        CURRENT_LOCAL.set(username);
    }

    public static String getCurrentLocal() {
        return CURRENT_LOCAL.get();
    }
    public static void removeCurrentLocal() {
        CURRENT_LOCAL.remove();
    }
}
